MkCommandOutput
Node to display the terminal output of a command.¶
Example: Regular¶
Name | Children | Inherits |
---|---|---|
MkTemplate mknodes.templatenodes.mktemplate Node representing a jinja template. |
graph TD
94599703618784["mkcommandoutput.MkCommandOutput"]
94599704712992["mktemplate.MkTemplate"]
94599705096240["mkcontainer.MkContainer"]
94599705097232["mknode.MkNode"]
94599703461184["node.Node"]
140153667328480["builtins.object"]
94599704712992 --> 94599703618784
94599705096240 --> 94599704712992
94599705097232 --> 94599705096240
94599703461184 --> 94599705097232
140153667328480 --> 94599703461184
/home/runner/work/mknodes/mknodes/mknodes/templatenodes/mkcommandoutput/metadata.toml
[metadata]
icon = "mdi:bash"
name = "MkCommandOutput"
[[resources.css]]
filename = "terminal.css"
[examples.regular]
condition = "{{ 'CI' | getenv }}"
title = "Regular"
jinja = """
{{ ["hatch", "--help"] | MkCommandOutput }}
"""
[output.html]
template = """
<div data-terminal>
<span data-ty="input">{{ node.call | join(" ") }}</span>
<span data-ty>{{ node.call | check_output(cwd=node.cwd) }}</span>
</div>
"""